package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.RoleMenuDAO;
import top.zywork.dos.RoleMenuDO;
import top.zywork.dto.RoleMenuDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.RoleMenuService;

import javax.annotation.PostConstruct;

/**
 * RoleMenuServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-09-25<br/>
 *
 * @author http://zywork.top 危锦辉
 * @version 1.0
 */
@Service(value = "roleMenuService")
public class RoleMenuServiceImpl extends AbstractBaseService implements RoleMenuService {

    private RoleMenuDAO roleMenuDAO;

    @Autowired
    public void setRoleMenuDAO(RoleMenuDAO roleMenuDAO) {
        super.setBaseDAO(roleMenuDAO);
        this.roleMenuDAO = roleMenuDAO;
    }

    @PostConstruct
    public void init() {
        super.init(RoleMenuDO.class, RoleMenuDTO.class);
    }
}
